Skip to content

samples: refresh PyTorch, TensorFlow, and Pillow requirements - #3163

Open
kkraus14 wants to merge 2 commits into
NVIDIA:mainfrom
kkraus14:codex/refresh-sample-dependency-floors
Open

kkraus14 wants to merge 2 commits into
NVIDIA:mainfrom
kkraus14:codex/refresh-sample-dependency-floors

Conversation

@kkraus14

@kkraus14 kkraus14 commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Update the minimum versions used by the samples to the latest stable releases:

  • PyTorch: torch>=2.14.1
  • TensorFlow: tensorflow>=2.21.0
  • Pillow: pillow>=13.0.0

Keep inline script dependencies and README versions aligned, and update the Windows PyTorch installation example to use CUDA 13.0 wheels.

Validation

  • 73 sample-runner and headless configuration checks passed.
  • Parsed all 56 sample requirements files and verified the three updated inline dependency blocks match their requirements files.
  • Resolved the three affected third-party dependency sets at the proposed minimum versions for Python 3.11 on Linux; also verified the Windows CUDA-enabled PyTorch wheel.
  • Applicable pre-commit hooks, documentation-link checks, and git diff --check passed.

GPU sample execution was not run because GPU access is unavailable in this environment.

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

Raise the sample minimums to PyTorch 2.14.1, TensorFlow 2.21.0,
and Pillow 13.0.0. Apply the Pillow floor to the Matplotlib sample,
and synchronize inline dependency metadata and documentation.

Signed-off-by: Keith Kraus <keith.j.kraus@gmail.com>
@kkraus14 kkraus14 added this to the cuda.core 1.3.0 milestone Oct 20, 2026 — with ChatGPT Codex Connector
@kkraus14 kkraus14 added cuda.bindings Everything related to the cuda.bindings module cuda.core Everything related to the cuda.core module example Improvements or additions to code examples dependencies Pull requests that update a dependency file labels Oct 20, 2026 — with ChatGPT Codex Connector
@kkraus14 kkraus14 self-assigned this Oct 20, 2026
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

📝 Summary

Summary by CodeRabbit

  • Documentation
    • Updated sample requirements and installation guidance for newer Pillow, PyTorch, and TensorFlow versions.
    • Updated CUDA-enabled PyTorch instructions to use the CUDA 13.0 wheel index.
  • Chores
    • Raised minimum Pillow requirements to 13.0.
    • Raised minimum PyTorch requirements to 2.14.1.
    • Raised minimum TensorFlow requirements to 2.21.0.

The pull request updates Pillow, PyTorch, and TensorFlow minimum versions across CUDA samples. It also changes the custom PyTorch kernel sample’s Windows installation guidance to use the CUDA 13.0 wheel index.

Changes: Pillow requirements

Layer / File(s) Summary
Update Pillow requirements
samples/cuda_bindings/extra/isoFdModelling/*, samples/cuda_core/blurImageUnifiedMemory/*
The isoFdModelling sample adds Pillow 13.0.0 to its requirements. The blurImageUnifiedMemory sample raises its documented and declared minimum from 10.0.0 to 13.0.0.

PyTorch requirements

Layer / File(s) Summary
Update PyTorch requirements and installation guidance
samples/cuda_core/customPyTorchKernel/*
The sample raises its documented and declared PyTorch minimum from 2.0 to 2.14.1. Windows guidance changes from the CUDA 12.8 wheel index and suffix examples to the CUDA 13.0 wheel index and PyTorch installation selector.

TensorFlow requirements

Layer / File(s) Summary
Update TensorFlow requirements
samples/cuda_core/customTensorFlowKernel/*
The sample raises its documented and declared TensorFlow minimum from 2.10 to 2.21.

Suggested reviewers: danielfrg

Priority: ➖ Normal

Change: Other

Merge Risk: 🟡 Moderate · up to 8cc35

Merge Risk: 🟡 Moderate · up to 8cc35

The documented Windows installation order can leave users with a CPU-only PyTorch build. Correct the instructions before merging.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/cuda-python/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 26aadfd3-3f77-4b3e-8a60-0c6ea41e0872
📥 Commits

Reviewing files that changed from the base of the PR and between 4ce6efe and 203703f.

📒 Files selected for processing: 11
  • samples/cuda_bindings/extra/isoFdModelling/README.md
  • samples/cuda_bindings/extra/isoFdModelling/requirements.txt
  • samples/cuda_core/blurImageUnifiedMemory/README.md
  • samples/cuda_core/blurImageUnifiedMemory/blurImageUnifiedMemory.py
  • samples/cuda_core/blurImageUnifiedMemory/requirements.txt
  • samples/cuda_core/customPyTorchKernel/README.md
  • samples/cuda_core/customPyTorchKernel/customPyTorchKernel.py
  • samples/cuda_core/customPyTorchKernel/requirements.txt
  • samples/cuda_core/customTensorFlowKernel/README.md
  • samples/cuda_core/customTensorFlowKernel/customTensorFlowKernel.py
  • samples/cuda_core/customTensorFlowKernel/requirements.txt

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

Comment thread samples/cuda_core/customPyTorchKernel/README.md
Keep the sample requirements limited to direct dependencies. Matplotlib
already installs Pillow for its optional wavefield display.

Signed-off-by: Keith Kraus <keith.j.kraus@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.bindings Everything related to the cuda.bindings module cuda.core Everything related to the cuda.core module dependencies Pull requests that update a dependency file example Improvements or additions to code examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants